import ShowStudentListView from "../modules/students/showStudentList.js";
import AddstudentView from "../modules/students/addStudent.js";
import DetailstudentView from "../modules/students/detailSudent.js";
import UpdateStudentInfo from "../modules/students/updateStudengInfo.js";
export default {
    '/studentList':{
        on:()=>new ShowStudentListView("myapp")
    },
    '/addstudent':{
       on:()=>{console.log("new list"), new AddstudentView()}
    },
    "/showDetail/:stuid":{
        on:(stuid)=>{
            //console.log("路由中：=>>",stuid)
           new DetailstudentView("myapp",stuid);
        }
    },
    "/updatestduent/:stuid":{
        on:(stuid)=>{
            //console.log("路由中：=>>",stuid)
           new UpdateStudentInfo("myapp",stuid);
        }   
    }

}